﻿using System.ComponentModel;

namespace ECode.ModbusTester.Lib.ViewModel
{
    public class BaseViewModel:INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        virtual internal void OnPropertyChanged(string propertyName)
        {
            if(PropertyChanged!=null)
                PropertyChanged.Invoke(this,new PropertyChangedEventArgs(propertyName));
        }
    }
}
